export function getType(obj: any): string {
    const map: Record<string, string> = {
      '[object Boolean]': 'boolean',
      '[object Number]': 'number',
      '[object String]': 'string',
      '[object Function]': 'function',
      '[object Array]': 'array',
      '[object Date]': 'date',
      '[object RegExp]': 'regExp',
      '[object Undefined]': 'undefined',
      '[object Null]': 'null',
      '[object Object]': 'object',
      '[object Math]': 'math',
      '[object ArrayBuffer]': 'arrayBuffer',
      '[object File]': 'file',
      '[object Blob]': 'blob',
      '[object FormData]': 'formData',
      '[object ReadableStream]': 'readableStream',
      '[object URLSearchParams]': 'urlSearchParams',
      '[object Response]': 'response',
    };
    const type: string = Object.prototype.toString.call(obj);
    return map[type];
  }